#ifndef __CAN_H
#define __CAN_H

#include "stm32f10x.h"
extern u8 mode,step;
extern u16 PrivateID,PublicID;
extern u8 canbuff[8],Can_Receive_Buff[8];  
void Set_PrivateID(void);
void Set_PublicID(void);
void Reboot(void);
u8 CAN_Mode_Config(u8 tsjw, u8 tbs2, u8 tbs1, u16 brp, u8 mode);
u8 Can_Send_Msg(u32 canid , u8* msg , u8 len);


#endif 

